<?php
    try
    {
        $dsn = 'mysql:host=localhost; dbname=m2l';
        $user= 'root';
        $psw= '';
        $db = new PDO($dsn, $user, $psw);
    }
    catch (PDOException $ex)
    {
        die ('Erreur : '.$ex->getMessage());  
    }
?>
